package Two;

import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		int n=scan.nextInt();
		int[] num=new int[n];
		for (int i = 0; i < n; i++) {
			try{
			int x=Integer.parseInt(scan.next());
			num[i]=x;
			}catch(Exception e){
				i--;
				System.out.println(e);
			}
		}
		System.out.println(Arrays.toString(num));
		scan.close();
	}

}

